package com.aegis.common.exception;

import cn.hutool.http.HttpStatus;
import com.aegis.common.web.BaseResponseEnum;
import com.aegis.common.web.IResponseEnum;

/**
 * @Author wuweixin
 *
 * @Version 1.0
 * @Descritube
 */
public class ServiceException extends BaseException {

    public ServiceException(IResponseEnum errorInterface) {
        super(errorInterface, null, HttpStatus.HTTP_UNAVAILABLE);
    }

    public ServiceException(IResponseEnum errorInterface, String message) {
        super(errorInterface, message, HttpStatus.HTTP_UNAVAILABLE);
    }

}
